
import { axiosGet, axiosPost, axiosPut, axiosDelete } from '/@/api/RequestBase';
import { SqlSugarPagedList, BaseBillCancelInput} from '/@/api/BaseDto';

import { InvTuiXueAddInput } from './dto/InvTuiXueAddInput';
import { InvTuiXueUpdateInput } from './dto/InvTuiXueUpdateInput';
import { InvTuiXueOutput } from './dto/InvTuiXueOutput';
import { InvTuiXueZhuCongOutput } from './dto/InvTuiXueZhuCongOutput';
import { InvTuiXueAuditInput } from './dto/InvTuiXueAuditInput';
import { InvTuiXuePageInput } from './dto/InvTuiXuePageInput';
import { InvTuiXueMingXiInput } from './dto/InvTuiXueMingXiInput';
import { InvTuiXueMingXiOutput } from './dto/InvTuiXueMingXiOutput';
import { InvTuiXueMingXiWithXueYeOutput } from './dto/InvTuiXueMingXiWithXueYeOutput';

export type { InvTuiXueAddInput, InvTuiXueUpdateInput, InvTuiXueOutput, InvTuiXueZhuCongOutput, InvTuiXueAuditInput, InvTuiXuePageInput, InvTuiXueMingXiInput, InvTuiXueMingXiOutput, InvTuiXueMingXiWithXueYeOutput, };

const service = 'invTuiXue/'; // 要写后面的斜杠, 不要写前面的斜杠

export const InvTuiXueApi = {
	page: (data: InvTuiXuePageInput) => {
		return axiosPost<SqlSugarPagedList<InvTuiXueOutput>>(service + 'page', data);
	},
	get: (id: string) => {
		return axiosGet<InvTuiXueZhuCongOutput>(service + `get/${id}`);
	},
	add: (data: InvTuiXueAddInput) => {
		return axiosPost<string>(service + 'add', data);
	},
	cancel: (data: BaseBillCancelInput) => {
		return axiosPost<boolean>(service + 'cancel', data);
	},
}
